import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        String s = "12345";
        try {
            int num = Integer.parseInt(s);
            System.out.println("转换后的整数为：" + num);
        }catch (NumberFormatException e){
            System.out.println("无效整数表示");
        }
    }

    public static void main4(String[] args) {
        Solution solution = new Solution();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String num1 = scanner.nextLine();
            String num2 = scanner.nextLine();
            System.out.println(solution.addStrings(num1, num2));
        }
    }

    public static void main3(String[] args) {
        Solution solution = new Solution();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String s = scanner.nextLine();
            System.out.println(solution.isPalindrome(s));
        }
    }

    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()){
            String s = scanner.nextLine();
            int index = s.lastIndexOf(' ');
            String str = s.substring(index+1);
            System.out.println(str.length());
        }
    }

    public static void main1(String[] args) {
        String s = "bcaba";
        Solution solution = new Solution();
        System.out.println(solution.firstUniqueChar(s));
    }
}
